module.exports = {

    //入门文件
    entry: './src/js/app.js',
    //出口文件
    output: {
        path: __dirname + "/dist",
        filename: "bundle.js"
    },
    //需要依赖的插件或者是装载器
    module: {
        loaders: [{
                test: /\.css$/,
                loader: "style-loader!css-loader"
            },
            {
                test: /\.js$/,
                loader: "babel-loader",
                exclude: /node_modules/,
                query: {
                    presets: ["es2015"]
                }
            }
        ]
    }

}